<%--
XPTracker - Alternative Agile Tracking Tool
Copyright (C) 2006-2009  Stephen Starkey

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
--%>
<%@ include file="/taglibs.jsp" %>
<s:layout-render name="/layout/normal.jsp">
<s:layout-component name="bodyElement"><body style="min-width:0"></s:layout-component>
<s:layout-component name="header">

</s:layout-component>
<s:layout-component name="search">

</s:layout-component>

  <s:layout-component name="body">

    <s:form name="task" beanclass="org.xptracker.web.TaskActionBean">
      <table class="form" width="100%">
        <c:if test="${isStoryTask}">
          <tr>
            <td class="form-label">Assign To:</td>
            <td><xp:user-picker selectName="taskOwner" selected="${task.owner}" includeNobody="true" /></td>
          </tr>
        </c:if>
        <tr>
          <td class="form-label" width="70px">Summary:</td>
          <td><s:text id="summary" name="task.summary" style="width:100%"/></td>
        </tr>
        <tr>
          <td class="form-label">Description:<br/>(<a href="http://daringfireball.net/projects/markdown/dingus" target="_blank">Help</a>)</td>
          <td style="width:90%"><s:textarea name="task.description" rows="15" style="width:100%"/>
            <c:if test="${xp:isFit(task.descriptionContent)}">
              <small>
                <strong>WARNING: </strong> The task description was in FitNesse format before, and will be saved in
                Markdown format.<br/>
              </small>
            </c:if>
          </td>
        </tr>

        <tr>
          <td/><td><s:submit name="${type}" value="${type}"/></td>
        </tr>
      </table>
      <s:hidden name="task.id"/>
      <s:hidden name="storyId" value="${storyId}"/>
    </s:form>
    <script type="text/javascript">
      $('summary').focus();
    </script>
  </s:layout-component>
</s:layout-render>